<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
    <title>课程管理</title>

    <!--引入公共的easyui文件头-->
    <%@include file="/WEB-INF/views/commons/common_easyui.jsp"%>

    <script type="text/javascript" src="/static/js/system/curriculum.js"></script>
</head>
<body>

<!--begin信息列表-->
<table id="curriculum_datagrid"></table>
<!--end信息列表-->

<!--begin左上角工具栏-->
<div id="curriculum_tb">
        <shiro:hasPermission name="curriculum:save">
        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" data-cmd="add">增加</a>
        </shiro:hasPermission>
        <shiro:hasPermission name="curriculum:delete">
        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" data-cmd="remove">删除</a>
        </shiro:hasPermission>
        <shiro:hasPermission name="curriculum:update">
        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑</a>
        </shiro:hasPermission>
        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新</a>
        <input class="easyui-textbox"  type="text" id="curriculumName" name="curriculumName" prompt="请输入课程名称">
        <input class="easyui-combobox"  type="text" id="subjectName" name="subjectName" prompt="请选择科目名称" data-options="url:'/curriculumSeries/listAll',valueField: 'id',
                    textField: 'name',panelHeight:'auto'">
        <a id="curriculum_btn" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true"  data-cmd="queryKeyWord">查询</a>
</div>
<!--end左上角工具栏-->

<!--begin添加/编辑对话框-->
<div id="curriculum_dialog" align="center">
    <form id="curriculum_form" method="post">
        <table style="margin-top: 20px;border-collapse: separate;border-spacing: 0px 5px">
            <input type="hidden" name="id" id="curriculumId">
            <tr>
                <td>课程名称</td>
                <td><input class="easyui-textbox" name="name"></td>
            </tr>
            <tr>
                <td>所属科目</td>
                <td><input class="easyui-combobox" name="curriculumSeries.id" data-options="url:'/curriculumSeries/listAll',valueField: 'id',
                    textField: 'name',panelHeight:'auto'"></td>
            </tr>
            <tr>
                <td>是否会员</td>
                <td><input class="easyui-combobox" name="vip"  data-options="valueField: 'id',
		            textField: 'text',
		            panelHeight:'auto',
                    data: [{
                        id: '1',
                        text: '是'
                    },{
                        id: '0',
                        text: '否'
                    }],"></td>
            </tr>
            <tr>
                <td>序号</td>
                <td><input class="easyui-numberbox" name="sort" prompt="请输入数字"></td>
            </tr>
            <tr>
                <td>备注</td>
                <td><input class="easyui-textbox" name="remark"  data-options="multiline:true" style="width:180px;height:60px"></td>
            </tr>
        </table>
    </form>
</div>
<!--end添加/编辑对话框-->

<!--begin添加/编辑对话框底部按钮-->
<div id="curriculum_bb">
    <a href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-save" data-cmd="save">保存</a>
    <a href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-cancel" data-cmd="cancel">取消</a>
</div>
<!--end添加/编辑对话框底部按钮-->

</body>
</html>
